package com.tianyin.service.impl;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.stereotype.Service;

import com.tianyin.dao.impl.UserDaoImpl;
import com.tianyin.entity.User;
import com.tianyin.service.UserService;


@Service
public class UserServiceImpl implements UserService {
	private static Logger log = LoggerFactory.getLogger(UserServiceImpl.class);
	@Autowired
	private UserDaoImpl userDaoImpl;
	
	@Autowired
	private HibernateTemplate hibernateTemplate;
	@Override
	public User findUser(String account, String password)
			{
		int resultAcount=userDaoImpl.findUser();
		log.info("-----"+resultAcount);
		User user=new User();
		return user;
	}

	@Override
	public void saveUser() {
		userDaoImpl.saveLogin();
		String test =null;
		test.toString();
		
	}

}
